package com.kimi.abyss.rbac.domain;

import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.data.annotation.*;
import org.springframework.data.relational.core.mapping.Table;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * no-op
 *
 * @author kimi
 * @date 2021/7/22
 */
@Data
@ToString
@NoArgsConstructor
@Table("t_rbac_permission")
public class Permission implements Serializable {

    @Id
    private Integer id;

    private String code;

    private String name;

    private Boolean enabled = Boolean.TRUE;

    @CreatedDate
    private LocalDateTime createdDate;

    @CreatedBy
    private String createdBy;

    @LastModifiedDate
    private LocalDateTime lastModifiedDate;

    @LastModifiedBy
    private String lastModifiedBy;

}
